package com.chuangyang.fixboxmaster.ui.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.chuangyang.fixboxmaster.R;

/**
 * Created by vanshu on 15/4/13 09:31.
 */
public class PhotoReviewFragment  extends BaseFragment{
    private View mContentView;
    private ImageView imageView;

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        mContentView=inflater.inflate(R.layout.fragment_photo_review,container,false);
        imageView= (ImageView) mContentView.findViewById(R.id.image_url);
        return super.onCreateView(inflater, container, savedInstanceState);
    }

    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        setContentView(mContentView);
        String photoUrl=getArguments().getString("photo_url");
        Glide.with(getActivity()).load(photoUrl).centerCrop().crossFade().into(imageView);
        showResult();
    }
}
